Okta v2: Add revokeOauthTokens argument to okta-clear-user-sessions command#42920
Okta v2: Add revokeOauthTokens argument to okta-clear-user-sessions command#42920
Conversation
🤖 AI-Powered Code Review AvailableYou can leverage AI-powered code review to assist with this PR! Available Commands:
|
|
🤖 Content AI Reviewer: Analysis started. Please wait for results... |
🤖 Content-bot Review DisclaimerThis review was generated by an AI-powered tool and may contain inaccuracies. Please be advised, and we extend our sincere apologies for any inconvenience this may cause. |
content-bot
left a comment
There was a problem hiding this comment.
Hi there, thanks for the contribution to the Okta integration. I've reviewed the changes and have a few recommendations to align with our standards.
Please update the boolean argument in the YAML to use type: 8 (Boolean) instead of a predefined list for a better user experience. In the unit tests, I recommend testing the command function directly rather than the client method to ensure argument parsing logic is verified. Lastly, please adjust the Release Notes formatting and ensure the README argument names match the command table.
Great work otherwise!
Additionally, please address the following file-level notes:
Packs/Okta/Integrations/Okta_v2/Okta_v2_test.py: The new unit tests (test_clear_user_sessions_with_oauth_tokens) appear to call the client method directly. It is recommended to test the command functionclear_user_sessions_commandinstead. This ensures that the argument parsing logic (specificallyargToBoolean) is verified along with the client call.
@JudahSchwartz please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.
|
Validate summary Verdict: PR can be force merged from validate perspective? ✅ |
Status
Related Issues
fixes: CIAC-15065
Description
Added a new optional revokeOauthTokens argument to the okta-clear-user-sessions command that allows revoking OpenID Connect and OAuth refresh/access tokens in addition to clearing user sessions.